package file; 
 /*
 @Time: 2022/7/11 16:51
 @Author:GShuai
 @File:test.class
 @Software:IntelliJ IDEA
*/


import java.text.SimpleDateFormat;
import java.util.Date;

public class Test {
    public static void main(String[] args) {
        long start = System.currentTimeMillis(); //获取当前系统时间的毫秒值
        System.out.println(start);


        long max = Long.MAX_VALUE;
        max = max/1000/60/60/24/365;
        System.out.println("公元："+(1970+max));


        long  l= 1651031076964L;
        Date data = new Date(l);  //日期
        System.out.println(data);
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日 HH:mm:ss");
        String line = sdf.format(data);
        System.out.println(line);
    }
}
